#include <iostream>
#include <fstream>
#include <string>
using namespace std;

void ReadEvenNumber(const char* filename)
{
	int EvenNumberArray[501]; //To store 501 numbers from EvenFile
	ifstream InFile(filename);
	int xixon;
	// TamNguyen Get Infor of the file here
	string x[2048];
	int i = 0;
	while ( !InFile.eof() )
	{
		InFile >> x[i++];
	}
	
	cout << "There are " << i << "word/non-space characters in this file (" << filename << ")" << endl;
	for ( int j = 0 ; j < i ; j ++ )
	{
		cout << x[j] << endl;
	}
	//if( InFile.is_open() )
	//while ( !InFile.eof() )
	//{
	//	/*for ( int  i = 0 ; i <= 500 ; i ++ )
	//	{
	//		InFile >> EvenNumberArray[i];
	//	}*/
	//	InFile >> xixon;
	//}
	
	/*else 
	{
		printf("The file cannot be opened , please check!");
	}*/
	//TamNguyen End Get Infor
	/*for ( int  i = 0 ; i <= 500 ; i ++ )
	{
		cout << EvenNumberArray[i] << endl;
	}*/
	//printf("xixon = %d", xixon);
	InFile.close();

}